package com.liuche.pictureserver.pojo.req.user;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户注册请求信息
 *
 * @author liuche
 */
@Data
public class UserRegistryReqVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户昵称
     */
    @NotBlank(message = "【用户昵称不能位空】")
    private String userName;

    /**
     * 用户账号
     */
    @NotBlank(message = "【用户账号不能位空】")
    @Size(min = 4, max = 16, message = "【用户账号长度在4-16位之间】")
    private String userAccount;

    /**
     * 用户密码
     */
    @NotBlank(message = "【请填写用户密码】")
    @Size(min = 6, message = "【用户密码长度不能小于6】")
    private String password;

    /**
     * 二次校验密码
     */
    @NotBlank(message = "【请确认密码】")
    @Size(min = 6, message = "【用户密码长度不能小于6】")
    private String checkPassword;
}
